<script setup>
import TheWelcome from '../components/TheWelcome.vue'
// import { ElInput } from 'element-plus'
// console.log('------------测试husky lint-staged-----------')
// console.log('------------测试git add-----------')
import { ref } from 'vue'
const input = ref('')

document.addEventListener('paste', async (e) => {
  let text
  if (navigator.clipboard) {
    text = await navigator.clipboard.readText()
  } else {
    text = e.clipboardData.getData('text/plain')
  }
  console.log('监听到剪切事件------Got pasted text: ', text)
  console.log('监听到剪切事件------Got pasted input: ', input.value)
})
</script>

<template>
  <main>
    <el-input v-model="input" placeholder="Please input" />
    <TheWelcome />
  </main>
</template>
